<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8"><!--字符编译方式-->
    <meta name="viewport" content="width=device-width,initial-scale=1.0"><!--网页移动端显示方式-->
    <meta name="description" content="一个专注于学习记录的平台，帮助用户整理笔记"><!--网页收索信息显示-->
    <title>{% block title %}Learning Log{% endblock %}</title>
    {% load static %}
    <link rel="stylesheet" href="{% static 'css/main.css' %}">
    <base target="_self" >
</head>
<body>
    <nav class="navbar navbar-expand-lg navbar-light bg-light">
        <div class="container">
            <!--移动端折叠交互：因校园网导入文件较慢，已废弃-->
            <!--<div class="navbar-header">
                <button type="button" class="navbar-toggler" 
                data-ba-target="collapse" data-ba-target="#navbar"
                aria-expanded="false" aria-controls="navbar" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
                </button>
            </div>-->
            <div id="navbar" class="collapse navbar-collapse">
                <ul class="nav navbar-nav">
                    <li class="nav-item"> 
                        <a class="nav-link" href="{% url 'learn_app:topics' %}">跳转主题界面<br></a>
                    </li>
                </ul>
                <ul class="nav navbar-nav ms-auto">
                    {% if user.is_authenticated %}
                        你好，{{user.username}}。
                        
                        <a href="{% url 'users:logout' %}"><br>注销账户</a>
                    {% else %}
                        <a href="{% url 'users:login' %}" >登录<br></a>
                        <a href="{% url 'users:register' %}">注册</a>
                    {% endif %} 
                </ul>
            </div>
        </div>
    </nav>
    <main>
        <div class="page-header py-5 bg-light">
        {% block header %}{% endblock %}
        </div>
        {% block content %}
        <p>Learning Log helps you keep track of your learning,for any topic you're learning about.</p>
        {% endblock %}
    </main>
    <footer class="mt-auto py-3 bg-light">
        {% block footer %}The End{% endblock %}
    </footer>
</body>
</html>